//
//  MyCommentCell.swift
//  maosheng
//
//  Created by lxl on 2019/8/13.
//

import UIKit

class MyCommentCell: MyCommentNoImgCell {

    override func addTheImageView() -> Void {
        var tmpImg : UIImageView?
        let imgWidth = (SCREENW - 30 - 20)/3
        for i in 0..<3 {
            let imgView = UIImageView()
            imgView.tag = 201 + i
            imgView.isHidden = true
            imgView.layer.cornerRadius = 5
            imgView.layer.masksToBounds = true
            mainView.addSubview(imgView)
            imgView.snp.makeConstraints { (make) in
                make.top.equalTo(titleLab.snp.bottom).offset(15)
                make.width.equalTo(imgWidth)
                make.height.equalTo(85)
                if tmpImg != nil{
                    make.left.equalTo(tmpImg!.snp.right).offset(10)
                }else{
                    make.left.equalTo(15)
                }
            }
            
            tmpImg = imgView
        }
    }

}
